calculation of cash price